<%--
  Created by IntelliJ IDEA.
  User: yutao
  Date: 2017/5/2
  Time: 9:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="../common/taglibs.jsp" %>
<html>
<head>
    <title>Title</title>
    <script src="${ctx}/js/views/specially/reissueApply.js"></script>
</head>
<body ng-app="myApp" style="overflow:scroll;overflow-x:hidden">
<core:import url="../common/pageHead.jsp">
    <core:param name="title" value="信息补发申请"/>
</core:import>
<div ng-controller="queryCtrl" class="container-fluid">
    <form id="queryForm" name="queryForm" action="${ctx}/informationPush/apply/search" class="form-inline" autocomplete="off">
        <table table-detail>
            <tr>
                <td class="text-right">
                    申请类型：
                </td>
                <td>
                    <select ng-disabled="vm.queryBean.kind != null || vm.queryBean.messageDate !=null" class="{{vm.constant.inputClass}}" ng-model="vm.queryBean.riskType"
                            ng-options="key as value for (key,value) in {'01':'黑名单补发申请','02':'风险提示信息补发申请'}">
                        <option value="">请选择</option>
                    </select>
                </td>
                    <td class="text-right" >
                        申请日期：
                    </td>
                    <td>
                        <input ng-disabled="vm.queryBean.kind != null || vm.queryBean.messageDate !=null" type="text" class="{{vm.constant.inputClass}}" uib-datepicker-popup="yyyy-MM-dd"
                               ng-model="vm.queryBean.reqDate"/>
                    </td>
            </tr>
            <tr>
                <td class="text-right">
                    推送类型：
                </td>
                <td>
                    <select ng-disabled="vm.queryBean.riskType !=null || vm.queryBean.reqDate !=null" class="{{vm.constant.inputClass}}" ng-model="vm.queryBean.kind"
                            ng-options="key as value for (key,value) in {'TS0001':'黑名单推送','TS0002':'风险提示信息推送'}">
                        <option value="">请选择</option>
                    </select>
                </td>
                <td class="text-right">
                    推送日期：
                </td>
                <td >
                    <input ng-disabled="vm.queryBean.riskType !=null || vm.queryBean.reqDate !=null" type="text" class="{{vm.constant.inputClass}}" uib-datepicker-popup="yyyy-MM-dd"
                           ng-model="vm.queryBean.messageDate"/>
                </td>
            </tr>
            <tr>
                <td colspan="8" class="textCenter">
                    <button type="button" ng-click="vm.queryDetail()" class="btn btn-default">查询</button>
                    <button type="button" ng-click="vm.resetForm()" class="btn btn-default">重置</button>
                </td>
            </tr>
        </table>
    </form>
    <div>
        <div>
            <button ng-click="vm.addItem()"><i class="glyphicon glyphicon-plus"></i></button>
        </div>
        <table table-detail>
        <thead>
            <tr>
            <th>申请类型/推送类型</th>
            <th>申请日期</th>
            <th>推送日期</th>
            <th>状态</th>
            </tr>
        </thead>
        <tbody ng-repeat="bean in vm.pagination.list track by $index">
            <td ng-if="bean.type == '01'">{{{'01':'黑名单补发申请','02':'风险提示信息补发申请'}[bean.riskType]}}</td>
            <td ng-if="bean.type == '03'">{{{'TS0001':'黑名单推送','TS0002':'风险提示信息推送'}[bean.kind]}}</td>
            <td ng-if="bean.type == '01'">{{bean.reqDate | date:"yyyy-MM-dd" }}</td>
            <td ng-if="bean.type != '01'"></td>
            <td ng-if="bean.type == '03'">{{bean.messageDate | date:"yyyy-MM-dd" }}</td>
            <td ng-if="bean.type != '03'"></td>
            <td ng-if="bean.type == '01'">{{{'01':'已获取','02':'获取失败','03':'获取中'}[bean.status]}}</td>
            <td ng-if="bean.type == '03'">{{{'01':'已推送'}[bean.status]}}</td>
        </tbody>

        <tfoot>
        <tr>


        </tr>
        </tfoot>
        </table>
    </div>
    <core:import url="../common/pageFoot.jsp"/>
</div>
<core:import url="../common/nav.jsp"/>

</body>
</html>
